#include "InterOpDocumentInstance.h"
#include "InterOpDocumentReference.h"
#include "common/constant.h"

AMCAX_EXCHANGE_NAMESPACE_BEGIN

namespace InterOp
{
    std::shared_ptr<InterOpDocumentReference> InterOpDocumentInstance::InterOpDocumentInstance::GetDocumentReference() const 
    {
         return documentReference_;
    }

    void InterOpDocumentInstance::SetDocumentReference(std::shared_ptr<InterOpDocumentReference> documentReference)
    {
        documentReference_ = documentReference;
    }

    std::string InterOpDocumentInstance::GetPersistName() const
    {
        return pname_;
    }

    void InterOpDocumentInstance::SetPersistName(const std::string &pname)
    {
        pname_ = std::string(pname);
    }

    InterOpMatrix InterOpDocumentInstance::GetTransform() const
    {
        return transform_;
    }

    void InterOpDocumentInstance::SetTransform(const InterOpMatrix &matrix)
    {
        transform_ = matrix;
    }

    std::string InterOpDocumentInstance::GetName() const
    {
        return name_;
    }

    void InterOpDocumentInstance::SetName(const std::string &name)
    {
        name_ = name;
    }
}

AMCAX_EXCHANGE_NAMESPACE_END